﻿using System.Collections.Generic;
using System.Linq;

namespace Games.HuaRongDao
{
    class Map
    {
        private readonly Dictionary<string, (long, int)> maps = new Dictionary<string, (long, int)> {
            { "01.横刀立马", (346272505866106881, 81) },
            { "02.三军联防", (346566898894819968, 65) },
            { "03.兵将联防", (271113189457990465, 120) },
            { "04.兵临曹营", (126962817129953793, 34) },
            { "05.层层设防", (273365538959332161, 102) },
            { "06.调兵遣将", (127802979883991680, 52) },
            { "07.巧过五关", (126962815561417345, 34) },
            { "08.守口如瓶", (273642625236875265, 82) },
            { "09.如瓶守口", (271113197008602241, 100) },
            { "10.水泄不通", (346794772674429569, 79) },
            { "11.五将逼宫", (346566890372518021, 36) },
            { "12.云遮雾障", (346545184698139457, 82) },
            { "13.重重包围", (346808174187250497, 73) },
            { "14.指挥若定", (255909692561307649, 70) },
            { "15.将拥曹营", (347406934487759105, 72) },
            { "16.齐头并进", (201013280304674817, 61) },
            { "17.兵分三路", (255873958433421569, 72) },
            { "18.雨声淅沥", (346808174221625345, 48) },
            { "19.左右布兵", (127239902598961665, 54) },
            { "20.桃花园中", (273606890471454977, 70) },
            { "21.一路进军", (273343213839222785, 59) },
            { "22.一路顺风", (309934952289306625, 39) },
            { "23.围而不歼", (273343205317445633, 63) },
            { "24.捷足先登", (127239894077201153, 32) },
            { "25.插翅难飞", (201004140614158337, 65) },
            { "26.横马当关", (346843978133551105, 84) },
            { "27.兵挡将阻", (273329813046331585, 87) },
            { "28.堵塞要道", (127239902104033793, 40) },
            { "29.瓮中之鳖", (346843980767574017, 103) },
            { "30.层峦叠嶂", (346826109476812801, 98) },
            { "31.四路进兵", (127239901098322433, 77) },
            { "32.入地无门", (200441194393671681, 87) },
            { "33.四面楚歌", (344534251014600709, 56) },
            { "34.前呼后拥", (347344523840496130, 22) },
        };

        public List<string> GetNames()
        {
            return maps.Select(x => x.Key).ToList();
        }

        public (long, int) GetMap(string name)
        {
            if(this.maps.ContainsKey(name))
            {
                return this.maps[name];
            }
            return (0, 0);
        }
    }
}
